package gov.army.workshop.baseworkshop.web.global;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ErrorController {
	
	@RequestMapping("pagenotfound")
	public String handlePageNotFound() {
		return ".view.error.pagenotfound";
	}
	
	@RequestMapping("generic")
	public String handleGenericError() {
		return ".view.error.genericerror";
	}
	
	@RequestMapping
	public String anything() {
		return ".view.error.pagenotfound";
	}
}
